﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using XZL.GM.Bll;
using XZL.GM.Dal;

public partial class Admin_Course_TeacherList : AdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
           
            BindTeacherList();

        }
    }

    private void BindTeacherList()
    {
        int? count = 0;

         divCondition.Visible = true;
         gridList.DataSource = TeacherInfoBiz.GetTeacherList(txtTeacherName.Text.Trim(),netPager.CurrentPageIndex,netPager.PageSize, ref count);
         gridList.DataBind();
         netPager.RecordCount = count.Value;
         lblWarn.Text = "讲师数量:" + count.Value;


    }





    /// <summary>
    /// 分页控件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void netPager_PageChanged(object sender, EventArgs e)
    {
        BindTeacherList();
    }

    protected void btnSelect_Click(object sender, EventArgs e)
    {
        BindTeacherList();
        netPager.CurrentPageIndex = 1;
    }




}